package runesim.node.packethandler;

import org.apache.mina.common.IoSession;
import runesim.node.model.Player;
import runesim.node.model.World;
import runesim.node.net.Packet;

/**
 * This basic handler must navigate the login process and then add the player to
 * the playerloadqueue.
 */
public class PlayerLogin {
	
	public void handlePacket(Packet p, final IoSession session) {
		Player player = (Player) session.getAttachment();
		
		World.getWorld().getPlayerLoadQueue().addLoad(player);
	}
}
